<div class="idiomas index">
	<h2><?php echo __('Idiomas'); ?></h2>
	<table cellpadding="0" cellspacing="0" class="table table-striped table-bordered">
	<tr>
		<th><?php echo $this->Paginator->sort('idioma'); ?></th>
		<th><?php echo $this->Paginator->sort('ativo', __('Status')); ?></th>
		<th class="actions"><?php echo __('Ativar/Desativar'); ?></th>
	</tr>
	<?php foreach ($idiomas as $idioma): ?>
	<tr>
		<td><?php echo h($idioma['Idioma']['idioma']); ?>&nbsp;</td>
		<td><?php if ($idioma['Idioma']['ativo'] == 1) {echo h(__("Ativo"));} else {echo h(__("Inativo"));} ?>&nbsp;</td>
		<td class="actions">
		<div class="btn-toolbar">
			<div class="btn-group">
				<?php echo $this->Html->link("<i class=icon-edit></i>", array('action' => 'ativar_desativar', $idioma['Idioma']['id']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Ativar/Desativar'))); ?>
			</div>
		</div>
	</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p class="text-info">
		<?php
		echo $this->Paginator->counter(array(
		'format' => __('Página {:page} de {:pages}, total de {:count} registros')
		));
		?>	
	</p>
	<div class="pagination pagination-centered">
	<ul>
		<?php echo $this->Paginator->prev(
			'< '.__('Anterior'),
			array('tag' => 'li', 'class' => 'prev'),
			'<a>< '.__('Anterior').'</a>',
			array('tag' => 'li', 'escape' => false, 'class' => 'prev disabled')
		);?>
		<?php echo $this->Paginator->numbers(array('separator' => '', 'tag'=>'li', 'currentTag'=>'a', 'currentClass'=>'active')); ?>
		<?php echo $this->Paginator->next(
			__('Próximo'). ' >',
			array('tag' => 'li', 'class' => 'prev'),
			'<a>'.__('Próximo').' ></a>',
			array('tag' => 'li', 'escape' => false, 'class' => 'prev disabled')
		);?>
	</ul>
</div>
</div>

